const fs = require('fs');
const path = require('path');

const cwd = process.cwd();
const appDirectory = fs.realpathSync(cwd);
const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath);
console.log('cwd,resolveApp', cwd, resolveApp);

module.exports = {
  resolveApp,
  appPublic: resolveApp('public'),
  appHtml: resolveApp('public/index.html'),
  appSrc: resolveApp('src'),
  appDist: resolveApp('dist'),
  appTsConfig: resolveApp('tsconfig.json')
};
